# Maintainer:
pkgname=libudfread
pkgver=1.1.2
pkgrel=2
pkgdesc="UDF reader library"
url="https://code.videolan.org/videolan/libudfread"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	autoconf
	automake
	libtool
	"
subpackages="$pkgname-dev"
source="https://code.videolan.org/videolan/libudfread/-/archive/$pkgver/libudfread-$pkgver.tar.gz"

prepare() {
	default_prepare

	NOCONFIGURE=1 autoreconf -fvi
}

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--prefix=/usr \
		--build=$CBUILD \
		--host=$CHOST \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3069feb5db40288beb5b112b285186162a704f0fdd3cf67a17fd4eeea015f2cfcfbb455b7aa7c3d79d00fd095a3fd11cffc7b121dce94d99c3b06a509a8977d2  libudfread-1.1.2.tar.gz
"
